import { SET_DATA } from "./constant";

import { ActionContext } from "vuex";
import { wechatState } from "./store";
export default {
  [SET_DATA]({ commit }: ActionContext<wechatState, unknown>): void {
    console.log("action执行成功");
    setTimeout(function () {
      const payload = "微信授权";
      commit(SET_DATA, payload);
    }, 2000);
  },
};
